!!!
%html
  %head
    %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
    %title Huxi
    = stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true
    = javascript_include_tag 'application', 'data-turbolinks-track' => true
    = csrf_meta_tags
  %body
    = render 'shared/flash'
    #switch-botton
      = link_to '首页',root_path,class:'ui blue inverted float-right button'
      - if @signup
        = link_to '登录',login_path,class: 'ui green inverted float-right button'
      - else
        = link_to '注册', signup_path, class: 'ui green inverted float-right button'
    = image_tag 'rain.jpg',id: 'rainyday'
    #wallpage
      = yield
